/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.com.merb.client.ui.menu;

import co.com.merb.shared.i18n.MerbConstants;
import com.google.gwt.core.client.GWT;
import com.smartgwt.client.widgets.Window;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;


/**
 *
 * @author ias
 */
public class InicioPane extends Window{
    
    private final MerbConstants constants;
    private final VLayout mainLayout;
    private final HLayout southLayout;
    private final VLayout eastLayout;
    private final HLayout westLayout;

    public InicioPane(){
       this.constants = GWT.create(MerbConstants.class);
       this.mainLayout = new VLayout();
       this.southLayout = new HLayout();
       this.eastLayout = new MainArea();
       this.westLayout = new NavigationArea((MainArea)eastLayout);
       setComponents();
    }
    private void setComponents() {
        setWidth100();
        setHeight100();
        setTitle(constants.TituloProyecto());
        mainLayout.setWidth100();
        mainLayout.setHeight100();
        westLayout.setWidth("20%");
        eastLayout.setWidth("80%");
        eastLayout.setImage("Fondo.png", "Img/");
        southLayout.setMembers(westLayout, eastLayout);
        mainLayout.addMember(southLayout);
        setShowMinimizeButton(false);
        setShowCloseButton(false);
        setIsModal(true);
        setShowModalMask(false);
        setCanDragReposition(false);
        centerInPage();
        addItem(mainLayout);
    }
    
}
